<extend name="Base/common"/>
<block name="body">
  <form action="{:U('Item/search')}" class="content-padded" method="get">
    <div class="control-group search"> <i class="icon icon-search"></i>
      <input type="search" name="keyword" placeholder="请输入关键词">
    </div>
  </form>
  <div class="category">
    <div class="mui-nav-tab">
      <div class="tab-container">
        <div class="tab-nav">
          <ul>
          <li ><a href="{:U('Item/search')}">全部商品</a></li>
          <volist name="category" id="vo">
            <li <eq name="vo.id" value="$cid">class="active" </eq>><a href="{:U('Item/category',array('cid'=>$vo['id']))}">{$vo['name']}</a></li>
          </volist>
 
          </ul>
        </div>
        <div class="tab-menu">
          <ul class="tab-ul">
          <volist name="category" id="value">
          <volist name="value._" id="vo">
          <eq name="value.id" value="$cid">
            <li class="tab-li active">
          <else />
            <li class="tab-li">
          </eq>
              <div class="tab-list">
                <h2><a href="{:U('Item/search',array('cid'=>$vo['id']))}">{$vo['name']}</a></h2>
                <ul>
                <volist name="vo._" id="val">
                  <li>
                    <a href="{:U('search',array('cid'=>$val['id']))}">
                    <div class="tab-img">
                    <empty name="val.icon">
                       <img src="__IMG__/img-pai-bg.png">
                    <else />
                       <img src="{:get_cover($val['icon'],'path')}">
                    </empty>
                     
                    </div>
                    <p class="tab-desc">{$val['name']}</p>
                    </a>
                    </li>
                </volist>
                </ul>
              </div>
            </li>
            
          </volist>
          </volist>
          
          </ul>
        </div>
      </div>
    </div>
    
    </div>
  <script>
  seajs.use('module/category',function(category){
	//category.all_init();
  category.cate_init();
  });
  </script>
  <style>
  
  </style>
</block>
